package com.cqh.recruit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cqh.recruit.pojo.dto.LActivityCheckQueryDto;
import com.cqh.recruit.pojo.entity.ActivityCheck;
import com.cqh.recruit.pojo.vo.LActivityCheckListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description:
 * @Author: DengHao
 * @Date: 2025/10/18 18:47
 */
@Mapper
public interface ActivityCheckMapper extends BaseMapper<ActivityCheck> {

    /**
     * 根据查询条件分页查询活动审核列表
     * @param page
     * @param lActivityCheckQueryDto
     * @return
     */
    Page<LActivityCheckListVo> findLActivityCheckByQueryDto(Page page, @Param("ActivityCheck") LActivityCheckQueryDto lActivityCheckQueryDto);

    /**
     * 根据活动id和学生id查询活动审核记录
     * @param activityId
     * @param studentId
     * @return
     */
    ActivityCheck selectByActivityAndStudent(@Param("activityId") Long activityId,@Param("studentId") Long studentId);

    LActivityCheckListVo findActivityCheckById(Long id);
}